package com.huixuebao.common.bean;


import com.huixuebao.common.enumeration.ResultCodeEnum;
import lombok.Data;

/**
 * @author fatao_yu
 * @version 1.0
 * @date 2020-11-12 22:15
 */
@Data
public class ApiResult<T> {
    private boolean success;
    private String code;
    private String message;
    private T data;

    public ApiResult() {

    }


    public ApiResult(ResultCodeEnum resultCode) {
        this.code = resultCode.getCode();
        this.message = resultCode.getMessage();
    }
}
